{% load static %}
<!doctype html>
<html class="no-js" lang="en">
  <link href="{% static 'blog/css/index.css' %}" rel="stylesheet" type="text/css" media="all" />
  <head>
    <title>wemake-django-template</title>
    
  </head>

  <body>
    <dev>
    <h1>wemake-django-template</h1>
    {% if user.is_authenticated %}
    <p>Hello, {{ user.email }}</p>
    <form class="inline" action="{% url 'blog:my_list' %}">
      <button type="submit">My post</button>
    </form>
    <form class="inline" action="{% url 'blog:create' %}">
      <button type="submit">Create post</button>
    </form>
    <form class="inline" action="{% url 'accounts:logout' %}">
      {% csrf_token %}
      <button type="submit">logout</button>
    </form>
    {% else %}
    <p>Please login to add/edit posts.</p>
    <form class="inline" action="{% url 'accounts:registration' %}">
      {% csrf_token %}
      <button type="submit">register</button>
    </form>
    <form class="inline" action="{% url 'accounts:login' %}">
      {% csrf_token %}
      <button type="submit">login</button>
    </form>
    {% endif %}
      
      </dev>
    <p>
    {% block content %}
    {% endblock %}
    
    
    </p>
  </body>
</html>
